import React from 'react';
import { useNavigate } from 'react-router-dom';

const Index = () => {
    const navigate = useNavigate()
    return (
        <div>
            <button onClick={() => { navigate("/detail/=123") }}>跳转详情</button>
        </div>
    );
}

export default Index;
